// 表单数据
export let formValidate = {
  type: null,
  name: null,
  url: null,
  perms: null,
  open: null,
  hidden: null,
  icon: null,
  orderNum: null,
  menuId: null,
  parentId: null,
  parentName: null,
};

// 表单验证规则
export let ruleValidate = {
  type: [{required: true, type:'number', message: "请选择菜单类型", trigger: "change"}],
  name: [{required: true, message: "菜单或按钮名称不能为空", trigger: "blur"}],
};

// 菜单类型
export let menuType = [{
  value: 0,
  key: "目录",
},{
  value: 1,
  key: "菜单",
},{
  value: 2,
  key: "按钮",
}];

// 打开方式
export let openType = [{
  value: 0,
  key: "当前窗口",
},{
  value: 1,
  key: "新建窗口",
}];

// 隐藏类型
export let hiddenType = [{
  value: 0,
  key: "否",
},{
  value: 1,
  key: "是",
}];